package corej.course.exception;

public class TestRuntimeException {
    public static void main(String[] args) {
        /*
           * int a=Integer.parseInt(args[0]); int b=Integer.parseInt(args[1]); if
           * (b!=0) System.out.println(a/b);
           */
        /*
           * int[] a=new int[10]; System.out.println(a[-1]);
           * System.out.println(a[10]);
           */
        /*
           * Animal a=new Dog(); if (a instanceof Cat) Cat c=(Cat)a;
           */
        /*
           * Animal a=null; if (a!=null) a.eat();
           */
    }
}

class Animal {
    public void eat() {
    }
}

class Dog extends Animal {
}

class Cat extends Animal {
}